

//权限接口
export default{
    pressMock:(options)=>{
         let{role}=JSON.parse(options.body)
        //  console.log(role);
         //根据不同数据返回不同的菜单信息
         if(role=='钢铁侠'){
            return{
                code:200,
                msg:'请求成功',
                data:[
                    //返回路由对象数组
                    {
                        path: 'shenpi',
                        // redirect:'/home/student',
                        name: 'Shenpi',
                       
                        //设置动态图标
                        meta:{
                          title:'审批管理',
                          icon:'el-icon-coordinate'
                           
                        }
                
                      },
                
                      {
                        path: 'qingjia',
                        // redirect:'/home/student',
                        name: 'Qingjia',
                        
                        //设置动态图标
                        meta:{
                          title:'排期审批',
                          icon:'el-icon-s-order'
                           
                        }
                
                      },
                
                      {
                        path: 'woqingjia',
                        // redirect:'/home/student',
                        name: 'Woqingjia',
                        
                        //设置动态图标
                        meta:{
                          title:'影片信息分享',
                          icon:'el-icon-video-camera-solid'
                           
                        }
                
                      },
                ]
            }
         }else{
            return{
                code:200,
                msg:'请求成功',
                data:[
                    //返回路由对象数组

                
                      {
                        path: 'woqingjia',
                        // redirect:'/home/student',
                        name: 'woqingjia',
                        
                        //设置动态图标
                        meta:{
                          title:'影片信息查询',
                          icon:'el-icon-video-camera-solid'
                           
                        }
                
                      },
                ]
            } 
         }
    }
}